package com.ysstech.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ysstech.common.entity.Role;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  角色Mapper 接口
 * </p>
 *
 * @author lishuangliang
 * @since 2020-09-12
 */
@Component
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 用户的角色信息
     * @param userId
     * @return
     */
    List<Role> selectRolesByUserId(String userId);

}